Optimization of the coupling between a tapered fibre and a p-i-n photodiode