Resonance energy transfer in a model system of membranes: application to gel and liquid crystalline phases.