Fission barriers and asymmetric ground states in the relativistic mean-field theory