Advanced gamma-ray spectometry dealing with coincidence and attenuation effects: A three curves approach