Prospects for observing and localizing gravitational-wave transients with advanced LIGO and advanced virgo