Simulation and Design of optical devices using optical constants and interference effects in thin films