Indian PM Modi to visit Afghanistan to open dam