how bear markets form