Optimizing the limit of detection of waveguide-based interferometric biosensor devices