Orbital occupation, atomic moments, and magnetic ordering at interfaces of manganite thin films