Giant monopole energies from a constrained relativistic mean-field approach