PM Modi greets Gujarat, Maharashtra on foundation day