A multi-layer land surface energy budget model for implicit coupling with global atmospheric simulations