Quantitative analysis of transmittance and photoluminescence using a low cost apparatus