Dilute magnetic semiconductors: the role of Mn in GaMnAs(001) and Mn/GaAs(001) surfaces