Photovoltaic effect in dye-doped polymer films with free-surface and sandwich structures