Adjusting for fertility and competition in variety trials