Ordered photo- and electroactive thin polymer layers