Elucidating the stop bands of structurally colored systems through recursion