As her new play opens at the Tristan Bates Theatre, playwright Tina Jay explains how she came to write about prison inmates