Identifying rare chaotic and regular trajectories in dynamical systems with Lyapunov weighted path sampling