The actress spent weeks filming psychological thriller The Woman in Cabin 10 on a luxurious superyacht