Gravar-mail: Legendre spectral-collocation method for solving some types of fractional optimal control problems