Constraints on a mixed inflaton and curvaton scenario for the generation of the curvature perturbation