Crystal chemistry of trace elements in natural and synthetic goethite