As Zara Aleena's killer Jordan McSweeney avoids prosecution for an 'inappropriate relationship' with his prison teacher, a criminologist explains how forbidden flings behind bars pan out