Accurate statistics for local sequence alignment with position-dependent scoring by rare-event sampling