t2g versus all 3d localization in LaMO3 perovskites (M=Ti-Cu): First-principles study.