The Rigveda: A historical analysis