Modeling the functional state of the reverse transcriptase of hepatitis B virus and its application to probing drug-protein interaction