Phenotypic plasticity, sexual selection and the evolution of colour patterns