Made output plots and "import matplotlib" optional

With this change, matplotlib is not anymore a strict requirement for SoFiA. However, it is necessary for users who would like to get diagnostic plots from the reliability calculation (reliability.makePlot=true).