Optimal management of replacement heifers in a beef herd: a model for simultaneous optimization of rearing and breeding decisions.