where does the formation of atp take place