Flexible modelling of spatial variation in agricultural field trials