Validation of density-functional versus density-functional+U approaches for oxide ultrathin films.