Energy transfer and aggregation in monolayers containing porphyrins and phthalocyanines