Variational quantum algorithm for enhanced continuous variable optical phase sensing