Dependence of metal ion complexation and intermolecular aggregation on photoinduced geometric isomerism in a crown ether styryl dye