Text this: Mathematical representation of joint angle measurement using step index optic fibre and linear array photodiode sensor