Fabrication of customized open-cell titanium foams by direct foaming for biomedical applications