Milk production functions in relation to feed inputs, cow characteristics and environmental conditions