Local realistic photon model compatible with Malus' law for experiments testing Bell's inequalities