Design of optical microsystems : applications in optical communication and biomedical imaging