Free-carrier absorption in Be- and C-doped GaAs epilayers and far infrared detector applications