A Scorza-Dragoni approach to second-order boundary value problems in abstract spaces