How German investors lose money in Spain (and how to avoid it)