Effective loop quantum cosmology as a higher-derivative scalar-tensor theory