Calculation of the ground-state Stark effect in small molecules using the variational quantum eigensolver