A Unified Analysis of Random Fourier Features