Characterization of undoped and doped homoepitaxial diamond layers produced by microwave plasma CVD