A general framework for jointly modelling thermal and hydric constraints on developing eggs