Thermodynamics of Peptide Insertion and Aggregation in a Lipid Bilayer