Molecular Theory for Amphiphile Packing and Elastic Properties of Monolayers and Bilayers