Theory of low-energy electron diffraction for detailed structural determination of nanomaterials: Ordered structures