The theory of angle-resolved ultraviolet photoemission and its applications to ordered materials