Magnetic order near surfaces and corners of a planar Heisenberg antiferromagnet