Absolute dimensions of detached eclipsing binaries – III. The metallic-lined system YZ Cassiopeiae