Weakly guiding approximation of a three-dimensional waveguide model for extreme ultraviolet lithography simulation