Magnetic structure of bct manganese in the bulk and at the (001) surface