Twitter apologizes after bug caused it to share some users' location data with third-party company