Electronic and magnetic phase diagram in KxFe 2-ySe 2 superconductors