Asymmetric one-dimensional photonic crystal for optical sensing in the visible spectral range