A new approach to adaptive particle filters for joint state and parameter estimation in hidden Markov models