Engineering bacteriophage encapsulation processes to improve stability and controlled release using pH responsive formulations