Earthquake rattles coast of California and triggers brief tsunami warnings