Terahertz gain on intersubband transitions in multilayer delta-doped p-Ge structures