Analysis of metal ion release from biomedical implants