Magnesium-based alloys and nanocomposites for biomedical application