Electronic structure of doped LaMnO3 perovskite studied by x-ray photoemission spectroscopy