Investigation of buffer charging effects in GaN-based transistors