Trigonometric distance and proper motions of H2O maser bowshocks in AFGL 5142