Existence, regularity and stability properties of periodic solutions of a capillarity equation in the presence of lower and upper solutions