Noncovalent interactions in extended systems described by the effective fragment potential method: theory and application to nucleobase oligomers.