MAST-SEY: MAterial Simulation Toolkit for Secondary Electron Yield. A monte carlo approach to secondary electron emission based on complex dielectric functions