Motorola's earnings hampered by weak phone sales