N=8 BPS black holes with 1/2 or 1/4 supersymmetry and solvable Lie algebra decompositions