Second order problems with functional conditions including Sturm–Liouville and multipoint conditions