Variational Rashba splitting in two-dimensional electron gases in III-V semiconductor heterojunctions