Attosecond time-resolved photoemission from core and valence states of magnesium.