Phase diagrams and magnetic properties of diluted Ising and Heisenberg magnets with competing interactions