The contrast in the fringes in an interference pattern depends on