Mesoscale boundary layer evolution over complex terrain. Part I: Numerical simulation of the diurnal cycle