Scalar Casimir energies of tetrahedra and prisms