Energetics and packing of fullerenes in nanotube peapods