The cycle life prediction of Mg-based hydrogen storage alloys by artificial neural network