Residents in parts of Western Australia and Queensland have been warned to prepare for stormy weather as two cyclones develop offshore.