A powerful earthquake offshore from Eureka, California on Thursday morning has prompted tsunami warnings on the west coast.