Energy conditions and classical scalar fields