originally it was used during world war ii to look for enemy ships and submarines that might try to enter the delaware bay , thus providing protection to philadelphia and the oil refineries along the coast of the bay .