Identifying and Profiting from Bubbles