What are two things that potential energy depends on