How to Properly Compute Phase and Gain Margins of Transfer Functions in MATLAB - Control Engineering