Horizontal and Vertical Electric Dipoles in a Two-Layer Conducting Medium