A new book and exhibition looks at some of the world’s most extraordinary houses, including a transformed cement factory outside Barcelona, a prefabricated house in the Netherlands, a restored 12th-century castle in England, and a futuristic seaside escape on the coast of Victoria