Mahindra ties up with Rimac