A computer model for optimisation of the internal climate in animal housing design