Tachyon solutions in boundary and cubic string field theory