Bulk and surface phonons in superlattices of diatomic crystals