Fundamentals of microoptics