Learning Temporally Extended Skills in Continuous Domains as Symbolic Actions for Planning