New method to predict amplitude of upcoming solar cycle can forecast space weather