Lightweight macroporous Co-Pt electrodeposited films with semi-hard-magnetic properties