Tucson gunman appears in court for Giffords shooting