Existence of chaotic oscillations in second-order linear hyperbolic PDEs with implicit boundary conditions