Spin control by application of electric current and voltage in FeCo–MgO junctions