Improvisational Robot Tool Use Using Affordance Based Planning