Gravar-mail: Methods for Estimating Neural Firing Rates, and Their Application to Brain-Machine Interfaces