Development of a Performance Envelope for Well Production Analysis; towards automated identification of problematic wells