China authorizes coast guard to fire on foreign vessels if needed