Magnesium oxide nanomaterial for carbon capture and potential biomedical applications