I want to use the legislation adoption at the state level to perform a diff-in-diff in my panel data. But states adopt the legislation at different year. Can I use diff-in-diff in this case, and how can I perform this?