Light trapping and near-unity solar absorption in a three-dimensional photonic-crystal