Tailoring magnetic and mechanical properties of mesoporous single-phase Ni-Pt films by electrodeposition