Daniel Ricciardo will receive a five-place grid penalty in India after having to take a gearbox change following final practice.