El Hamdaoui completes Malaga move