Study of the X(3872) and Y(4260) in B-0 -> J/psi pi(+)pi K--(0) and B--> J/psi pi(+)pi K--(-) decays