Microscopy of surfaces and applications to molecular beam epitaxy