Upbeat quarterly update lifts Twitter shares